package base.IO流;

import cn.hutool.core.io.FileUtil;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class text_1 {
    public static void main(String[] args) throws IOException {
        File dest = new File("C:\\Users\\TUO\\Desktop\\a\\b\\c.txt");
        File pathDirectory = new File(dest.getParent());
        pathDirectory.mkdirs();
        FileOutputStream fos = new FileOutputStream(dest);
        byte[] bytes = {'1','2','3','a',98,99};
        fos.write(bytes);
        fos.close();
    }
}
